<include file="Member:header"/>
<div id="content">
    <div class="crumbs_nav mb">
        <span class="icon">当前位置：</span>
        <a href="/">首页</a>
        &gt; 会员登录
    </div>
    <!--end crumbs_nav-->
    <div class="login_box">
        <div class="login_from">
            <h4 class="tabs"><a href="#" class="hover">用户登录</a><a class="line" href="#">商户登录</a></h4>
            <!--end tabs-->
			<div id="login_msg" style="text-align:center;color:red;padding:3px;"></div>
            <form class="login_input" action="{:U('Member/login')}" id="login_box" onsubmit="return goLogin();" method="post">
                <ul class="login_ul">
                    <li class="mb20">
                        <label>
                            用户名：
                        </label>
                        <input type="text" id="username" name="username" class="login-input" />
                    </li>
                    <li class="mb20">
                        <label>
                            密&nbsp;&nbsp;码：
                        </label>
                        <input type="password" id="password" name="password" class="login-input" />
                    </li>
					<li class="mb20">
                        <label>
                          验证码：
                        </label>
						<input name="verify" type="text" size="5" /><span><img id="login_verifyImg" src="{:U('Member/verify?time=1')}" onClick="fleshVerify(1,'login_verifyImg')" border="0" alt="点击刷新验证码" style="cursor:pointer" align="absmiddle"></span>
                    </li>
                    <li class="rm mb20">
                        <input type="checkbox" checked="checked" value="checkbox" name="checkbox" />记住我的帐号
                    </li>
                </ul>
                <div class="login_btn">
                    <input type="submit" value="登 录" name="loginsubmit" class="sub" /><a href="#" class="gray6">忘记密码？</a>
                </div>
				
                <!--end login_btn-->
            </form>
            <!--end login_input-->
            <div class="login_bot">
                <p>
                    还没有帐号 ？ <a href="{:U('Member/reg')}" class="orange">免费注册</a>
                </p>
            </div>
            <!--end login_bot-->
        </div>
        <!--end login_from-->
    </div>
    <!--end login_box-->
</div>
<script>
function goLogin(){
	postForm('login_box',function(jdata){
		$('#login_msg').html(jdata.info);
		if(jdata.status == 1){
			$('#login_msg').html(jdata.info);
			if($.cookie('jurl')){
				window.location.href = $.cookie('jurl');
			}else{
				window.location.href = '{:U('Member/index')}';
			}
			
		}
	});
	return false;
}
function fleshVerify(type,id){ 
	//重载验证码
	var timenow = new Date().getTime();
	if (type){
		$('#'+id).attr("src", '{:U('Member/verify?timenow=1')}'+timenow);
	}else{
		$('#'+id).attr("src", '{:U('Member/verify?timenow=2')}'+timenow);
	}
}
</script>
<include file="Layout:footer"/>